package com.mytecblog.article.entity;

import com.mytecblog.framework.entity.MetaObject;

import javax.persistence.*;
import java.math.BigDecimal;

@Entity(name = "Account")
@Inheritance(strategy = InheritanceType.JOINED)
public  class Account extends MetaObject{



    @Column
    private String owner;


    @Column
    private BigDecimal balance;


    @Column
    private BigDecimal interestRate;



    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getInterestRate() {
        return interestRate;
    }

    public void setInterestRate(BigDecimal interestRate) {
        this.interestRate = interestRate;
    }
}
